.. _ocacommandsetagent: 1.2.23 OcaCommandSetAgent ========================== Class Hierarchy: :ref:`OcaRoot ` : :ref:`OcaAgent ` : :ref:`OcaCommandSetAgent ` .. cpp:class:: OcaCommandSetAgent: OcaAgent Agent for immediate execution of commandsets. This agent provides a mechanism for simple execution of commandsets in cases where the application does not require the more advanced storage and scheduling features provided by the **OcaCommandSet**, **OcaTaskAgent**, and **OcaTaskScheduler** classes. **Properties**: .. _ocacommandsetagent_classid: .. cpp:member:: static const OcaClassID ClassID = "1.2.23" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the **OcaRoot** property. This property has id ``1.1``. .. _ocacommandsetagent_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 1 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``1.2``. Properties inherited from :ref:`ocaagent`: - :cpp:texpr:`OcaClassID` :ref:`OcaRoot::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaRoot::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaLockState` :ref:`OcaRoot::LockState ` - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` - :cpp:texpr:`OcaClassID` :ref:`OcaAgent::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaAgent::ClassVersion ` - :cpp:texpr:`OcaString` :ref:`OcaAgent::Label ` - :cpp:texpr:`OcaONo` :ref:`OcaAgent::Owner ` **Methods**: .. _ocacommandsetagent_execute: .. cpp:function:: OcaStatus Execute(OcaList32 Commands, OcaList32 &Results) Execute a command set. Return the status and returned parameter values from each command. The **OcaStatus** value returned by this** Execute(...)** method shall be as follows: **OK ** Given commands were executed; all, none, or some of them succeeded. **** Problem, no command execution was attempted This method has id ``3.1``. - :cpp:expr:`Commands`: Input parameter. - :cpp:expr:`Results`: Output parameter. Methods inherited from :ref:`ocaagent`: - :ref:`OcaAgent::GetClassIdentification ` - :ref:`OcaAgent::GetLockable ` - :ref:`OcaAgent::GetLockState ` - :ref:`OcaAgent::GetRole ` - :ref:`OcaAgent::SetLockNoWrite ` - :ref:`OcaAgent::SetLockNoReadWrite ` - :ref:`OcaAgent::Unlock ` - :ref:`OcaAgent::GetLabel ` - :ref:`OcaAgent::GetOwner ` - :ref:`OcaAgent::GetPath ` - :ref:`OcaAgent::SetLabel `